<?php
class podcms_shop_company extends EDO_object_basic
{
	static $_typeid = 6;
	static $_tables = array('podcms_shop_companies');

	
	
	public function delete()
	{
		parent::delete();
		$phrase = "UPDATE podcms_shop_products SET developerid = 0 WHERE developerid = {$this->getField('edoid')}";
		$this->ldb->exec($phrase);
		$phrase = "UPDATE podcms_shop_products SET publisherid = 0 WHERE publisherid = {$this->getField('edoid')}";
		$this->ldb->exec($phrase);
	}
	
}

	
	
	
	
	
	
	
	
	
	
